
PRJ_NAME       = "fpga-2016"
# PRJ_VERSION    = "1"
# PRJ_PATCHLEVEL = "0"
# PRJ_SUBLEVEL   = "0"


# default download.elf,download.dis,download.bin
OUTPUT_ELF	= fpga-2016-chip.elf
# OUTPUT_DIS	= 
# OUTPUT_BIN	= 
# OUTPUT_SO 	= 
# OUTPUT_A	= 
# OUTPUT_DIR 	= 




INCLUDE_DIR	+=-Iinterface 

LFLAGS-$(CONFIG_PROTOCAL_TR600_SPI) += -lfpga-2016
ifeq ("$(TARGET)", "clang-static")
LFLAGS-$(CONFIG_PROTOCAL_TR700_SPI) += -static -ffunction-sections -fdata-sections -Wl,--gc-sections -lfpga-tr700
else
	LFLAGS-$(CONFIG_PROTOCAL_TR700_SPI) += -lfpga-tr700
endif
LFLAGS-$(CONFIG_PROTOCAL_TR700_USB) += -lfpga-tr700-usb
LFLAGS-$(CONFIG_PROTOCAL_TR700_USB_TK) += -lfpga-tr700-usb-tk

LFLAGS-y += -lotdr-peripheral

ifeq ("$(CONFIG_USE_PTHREAD_FPGA_OTDR)", "y")
	LFLAGS		+= -lpthread
endif


#LFLAGS		+= -lpthread -lm 

LFLAGS		+= -lm 
# android平台下pthread被集成到libc
ifneq ("$(OS)", "android")
	LFLAGS		+= -lpthread
endif


LFLAGS += $(LFLAGS-y)  -Wl,-rpath=./:./lib-$(ARCH)/
LIB_DIR 	+= 
CFLAGS      +=  -O3 -std=gnu99 
